#include <iostream>
#include <string>

class ContactsException
{
public:
    ContactsException(const std::string &str = "A problem") : message(str) {}
    ~ContactsException() {}

    std::string what() const
    {
        return message;
    }
private:
    std::string message;
};

